<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Los Cocos</title>
    </head>
    <body>
        <a href="Administrador/AgregarCliente.php">Agregar Cliente</a>
        <?php
            include 'conexion/conexion.php';
            $link = mostrarPlatos();
            while ($row = mysql_fetch_array($link)){
            echo "<div><center><table border = '1'> \n";
            echo "<tr> \n";
            echo "<td><b>Nombre Producto</b></td> \n";
            echo "<td><b>Estado</b></td> \n";
            echo "<td><b>Precio</b></td> \n";
            echo "</tr> \n";
            echo "<tr> \n";
            echo "<td>" . $row['NombreP'] . "</td> \n";
            if( $row['stock'] >0){
                echo "<td>Disponible</td> \n";
            }
            else
            {
                echo "<td>No disponible</dv>";
            }

            echo "<td>" . $row['precio'] . "</td> \n";
            echo "</tr> \n";
            }
            echo "</table> </center></div>";

            ?>
    </body>
</html>